<script language="javascript1.4" type="text/javascript">
var shopingCart=new Object();
shopingCart.nSelectedID=null;
{literal}
shopingCart.showItemDescription=function(nID){
	var oInformation=document.getElementById('inormation_'+nID);
	oInformation.style.top='0';
	oInformation.style.position='relative';
	oInformation.style.visibility='visible';									
}
shopingCart.hideItemDescription=function(nID){
	var oInformation=document.getElementById('inormation_'+nID);
	oInformation.style.top='-500';
	oInformation.style.position='absolute';
	oInformation.style.visibility='hidden';
}
shopingCart.toggleItemDescription=function(nID){
	if (this.nSelectedID==nID){
		this.hideItemDescription(nID);
		this.nSelectedID=null;
	} else {
		if (this.nSelectedID!=null) this.hideItemDescription(this.nSelectedID);
		this.showItemDescription(nID);
		this.nSelectedID=nID;
	}
	
}
{/literal}
</script>
{ext->class_function class="shop_cart" assign="is_shop_cart"}
{if $is_shop_cart == 1}
	{if $smarty.get.order_id}
		{if $_http_path != 'http://tvs.protolab.info/impress_teva'}
			{include file="admin/modules/shop_cart/contenteditor.htm"}
		{else}
			{include file="admin/modules/shop_cart/contenteditor_teva.htm"}
		{/if}
	{elseif $smarty.get.tpl_act=='order_stats'}
		{include file="admin/modules/shop_cart/stats.htm"}
	{elseif $smarty.get.tpl_act=='settings'}
		{include file="admin/modules/shop_cart/settings.htm"}
	{else}
		{ext->class_function class="shop_cart" func="get_all_orders" assign="order_all_nofilter"}
		{counter start=0 skip=1 assign="ctx"}
		{foreach from=$order_all_nofilter item="el"}
			{if $smarty.get.client_id}
				{if $smarty.get.client_id==$el.client_id}
					{assign_array3 key=$ctx value=$el assign="order_all"}
					{counter assign="ctx"}
				{/if}
			{else}
				{if ($el.archive && $smarty.get.tpl_act=='order_archive') || (!$el.archive && $smarty.get.tpl_act!='order_archive')}
					{assign_array3 key=$ctx value=$el assign="order_all"}
					{counter assign="ctx"}
				{/if}
			{/if}
		{/foreach}
		{ext->paging elements=$order_all items_per_page=$_var.orders_per_page page=$smarty.get.order_list_page_nr assign="page_data"}
		{if $_http_path != 'http://tvs.protolab.info/impress_teva'}
			{include file="admin/modules/shop_cart/list.htm"}
		{else}
			{include file="admin/modules/shop_cart/list_teva.htm"}
		{/if}
	{/if}
{/if}
